@echo off
chcp 65001 >nul
echo ====================================
echo  启动 OriginPoint Engine 完整系统
echo ====================================
echo.

echo ➜ 将在两个新窗口中启动后端和前端
echo.
echo [后端] http://localhost:8080
echo [前端] http://localhost:3000
echo.
echo 按任意键继续...
pause >nul

echo.
echo [1/2] 启动后端服务...
start "OriginPoint Backend" cmd /k "start-backend.bat"

echo 等待后端启动...
timeout /t 3 /nobreak >nul

echo.
echo [2/2] 启动前端服务...
start "OriginPoint Frontend" cmd /k "start-frontend.bat"

echo.
echo ====================================
echo ✓ 启动完成！
echo ====================================
echo.
echo 后端: http://localhost:8080
echo 前端: http://localhost:3000
echo.
echo 默认管理员账号:
echo   邮箱: admin@example.com
echo   密码: admin123
echo.
pause

